package com.gok.seasonmovie.service;

import com.gok.seasonmovie.entity.Cinema;
import com.gok.seasonmovie.entity.Comment;
import com.gok.seasonmovie.mapper.CinemaMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CinemaService {

    @Autowired
    private CinemaMapper cinemaMapper;

    public List<Cinema> getAllCinema(String longitude,String latitude) {
        return cinemaMapper.getAllCinema(longitude,latitude);
    }

    public List<Cinema> getCinemaByCid(String id){return cinemaMapper.getCinemaByCid(id);}

    public List<Cinema> getCinemaByMid(String id,String longitude,String latitude){return cinemaMapper.getCinemaByMid(id,longitude,latitude);}
}
